package com.ea.common.filter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



/**
 * 退出<br>
 * web退出和restful方式退出<br>
 * 后者会删除缓存的token
 * 
 * @author 邢广军
 *
 *        
 */
public class LogoutFilter extends org.apache.shiro.web.filter.authc.LogoutFilter {

	private static final Logger log = LoggerFactory.getLogger("adminLogger");

	@Override
	protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
	
		
		boolean flag = super.preHandle(request, response);
		
		log.debug("{}退出成功");
		

		return flag;
	}



}
